package com.example.mwavlearndemo.av.ui.activity;

import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.AppCompatButton;

import android.os.Bundle;
import android.view.View;

import com.example.mwavlearndemo.R;
import com.example.mwavlearndemo.av.ui.base.IActivityInit;

public class YuvActivity extends AppCompatActivity  implements View.OnClickListener{

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_yuv);

        //开始video录制
        AppCompatButton videoRecord = findViewById(R.id.videoRecord);
        videoRecord.setOnClickListener(this);
        //结束video录制
        AppCompatButton videoStopRecord = findViewById(R.id.videoStopRecord);
        videoStopRecord.setOnClickListener(this);

        //开始video编码
        AppCompatButton videoEncode = findViewById(R.id.videoEncode);
        videoEncode.setOnClickListener(this);
        //结束video编码
        AppCompatButton videoStopEncode = findViewById(R.id.videoStopEncode);
        videoStopEncode.setOnClickListener(this);

        //开始video解码
        AppCompatButton videoDecode = findViewById(R.id.videoDecode);
        videoDecode.setOnClickListener(this);
        //结束video解码
        AppCompatButton videoStopDecode = findViewById(R.id.videoStopDecode);
        videoStopDecode.setOnClickListener(this);
    }


    @Override
    public void onClick(View view) {
        switch (view.getId()){
            case R.id.videoRecord:

                break;
            case R.id.videoStopRecord:

                break;
            case R.id.videoEncode:

                break;
            case R.id.videoDecode:

                break;
            case R.id.videoStopDecode:

                break;
        }
    }
}